import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsNumber, IsString } from 'class-validator';

export class UpdateMajorDto {
  @IsString()
  @IsNotEmpty({ groups: ['create', 'update'], message: '专业名称' })
  name: string;

  @IsString()
  desc: string;

  @IsNumber()
  @IsNotEmpty({ groups: ['create', 'update'], message: '学院名称' })
  department_id: number;
}
